<?php

class LoggerHelper {
	
	/**
	 * 记录当前用户的管理行为
	 */
	static function manage($desc){
		$account = UserAuthHelper::account();
		return Db::get('LogAdmin')->insert(array(
			'user_id'	=> UID,
			'user_name'	=> $account,
			'addtime'	=> time(),
			'desc'	=> $desc,
			'track'	=> UserTrack::get(),
		))->exec() ? Db::get()->insertId() : false;
	}
	
}

?>
